package router

import (
	"github.com/gin-gonic/gin"
	"study1/gin/controller"
)

func Routers() *gin.Engine {
	r := gin.Default()

	user := r.Group("user")
	{
		user.GET("list", func(c *gin.Context) {
			c.JSON(200, gin.H{
				"code": 200,
			})
		})

		user.GET("/user", controller.Usercontroller{}.Use)
	}

	return r
}
